import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:leader_help/page/home/main/widgets/headlines.dart';

import '../index.dart';

class HeadlinesListView extends GetView<HeadlinesController> {
  const HeadlinesListView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.symmetric(horizontal: 10.r),
      child: ListView.builder(itemBuilder: (ctx, index) {
        return HeadlinesText(
          iden: '习近平',
          content:
              '明年经济工作要稳字当头、稳中求进，各地区各部门要担负起稳定宏观经济的责任，各方面要积极推出有利于经济稳定的政策，政策发力适当靠前。',
          summary: '--2021年12月8日至10日中央经济工作会议上的要求',
          onTap: controller.actionHeadlinesDetail,
        );
      }),
    );
  }
}
